//
//  TransitionHelper.h
//  Karaoke
//
//  Created by Jiang Haofeng on 12-8-5.
//  Copyright (c) 2012年 Jiang Haofeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>

@interface TransitionHelper : NSObject

+ (TransitionHelper *) sharedInstance;
- (CATransition *) showTransition:(CFTimeInterval)time type:(NSString *)type subType:(NSString *)subType view:(UIView *)view;
- (void)  pushViewController:(UIViewController *)soureViewController
   destinationViewConyroller:(UIViewController *)destinationViewConyroller
      animatedWithTransition:(UIViewAnimationTransition)transition;
- (UIViewController*)popViewControllerAnimatedWithTransition:(UIViewAnimationTransition)transition viewController:(UIViewController *)viewController;
-(void)popViewController:(UIViewController *)viewController;

- (void)popToRootViewControllerWithTransition:(UIViewAnimationTransition)transition viewController:(UIViewController *)viewController;


@end
